package com.twm.util;

/**
 * @ClassName DateUtil
 * @Description TODO
 * @Author twm17
 * @Date 2020/11/12 13:27
 * @Version 1.0
 */
public class DateUtil {
    public static final String DATE_FORMAT_M = "MM月";
    public static final String DATE_FORMAT_YM = "yyyy年MM月";
    public static final String DATE_FORMAT_Y = "yyyy年";
    public static final String STANDARD_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String STANDARD_FORMAT_D = "yyyy-MM-dd";
    public static final String STANDARD_FORMAT_M = "yyyy-MM";
    public static final String STANDARD_FORMAT_y = "yyyy";
    public static final String STANDARD_FORMAT_dd = "dd";
    public static final String STANDARD_FORMAT_DHM = "dd HH:mm";
    public static final String STANDARD_FORMAT_HMS = "HH:mm:ss";
    public static final String STANDARD_FORMAT_H = "HH";
    public static final String STANDARD_FORMAT_YMDH = "yyyy-MM-dd HH";
    public static final String STANDARD_FORMAT_YMDHMS = "YYYYMMDDHHMMSS";


    public interface RedisCacheExtime {
        int REDIS_SESSION_EXTIME_2 = 60 * 30 * 1; //半个小时
        int REDIS_SESSION_EXTIME = 60 * 60 * 12; //12个小时
        int REDIS_DATA_EXTIME = 60 * 60 * 1;//1个小时
        int REDIS_DATA_EXTIME_3 = 60 * 60 * 3;//3个小时
    }
}
